package com.shopping.bean;


public class AllTable {


	public String selectTable(String table) {
		Admin admin = new Admin();
		Business b = new Business();
		Goods g = new Goods();
		OrderGoods o = new OrderGoods();
		Review r = new Review();
		ShopCar s =new ShopCar();
		User u = new User();
		UserFind uf = new UserFind();
		UserHobby uh = new UserHobby();
		UserResponse ur = new UserResponse();
		
		if(admin.thisTable.equals(table)) {
			return admin.thisTable;
		}
		
		if(o.thisTable.equals(table)) {
			return o.thisTable;
		}
		
		if(b.thisTable.equals(table)) {
			return b.thisTable;
		}
		
		if(g.thisTable.equals(table)) {
			return g.thisTable;
		}
		
		if(r.thisTable.equals(table)) {
			return r.thisTable;
		}
		
		if(s.thisTable.equals(table)) {
			return s.thisTable;
		}
		
		if(u.thisTable.equals(table)) {
			return u.thisTable;
		}
		
		if(uf.thisTable.equals(table)) {
			return uf.thisTable;
		}
		
		if(uh.thisTable.equals(table)) {
			return uh.thisTable;
		}
		
		if(ur.thisTable.equals(table)) {
			return ur.thisTable;
		}
		
		return null;
	}
}
